package com.zyj.java1;

/**
 * @program: JVMDemo
 * @ClassName YoungOldAreaTest
 * @author: YaJun
 * @Date: 2021 - 12 - 14 - 14:33
 * @Package: com.zyj.java1
 * @Description:
 * 测试：大对象直接进入老年代
 * JVM参数：
 * -Xms60m -Xmx60m -XX:NewRatio=2 -XX:SurvivorRatio=8 -XX:+PrintGCDetails
 */
public class YoungOldAreaTest {

    public static void main(String[] args) {
        byte[] buffer = new byte[1024 * 1024 * 20]; // 20M
    }

}
